GtkSearchEntry: Delay the changed signal by default
authorBastien Nocera <hadess@hadess.net>
Thu, 16 May 2013 16:20:19 +0000 (18:20 +0200)
committerBastien Nocera <hadess@hadess.net>
Fri, 17 May 2013 17:45:46 +0000 (19:45 +0200)
commit51e238653d720c9adfb587476bf708c0df92461e
tree47fc338f9ece485ea6732dd413188d65c4e4a02e
parent9d5b4f80306e43a9f09f3776ac80fc28bfcbd788
GtkSearchEntry: Delay the changed signal by default

Emit the "changed" signal after 150 msecs, so that searching
through big lists, or doing online searches feels more responsive.

This is something already done in various applications to make
search-as-you type more responsive (gnome-shell, gnome-documents,
gnome-control-center, etc.). The 150 msecs is the value currently
used by gnome-shell, so keep it (invisibly) consistent.

https://bugzilla.gnome.org/show_bug.cgi?id=700229
demos/gtk-demo/Makefile.am
demos/gtk-demo/demo.gresource.xml
demos/gtk-demo/search_entry2.c [new file with mode: 0644]
gtk/gtksearchentry.c